package vip.zhenzicheng.algorithm;

/**
 * 二叉树结构的通用表示
 *
 * @author zhenzicheng
 * @date 2022-06-04 12:39
 */
public class TreeNode {
  public int val;
  public TreeNode left;
  public TreeNode right;

  public TreeNode() {
  }

  public TreeNode(int val) {
    this.val = val;
  }

  public TreeNode(int val, TreeNode left, TreeNode right) {
    this.val = val;
    this.left = left;
    this.right = right;
  }
}
